<template>
  <div>abc</div>
</template>

<script setup lang="ts">
import { onMounted, onUnmounted } from "vue";

onMounted(() => {
  console.log("sub comp mounted");
});
onUnmounted(() => {
  console.log("sub comp unmounted");
});
</script>

<style scoped></style>
